
<%@ page import="ratemymacclass.ProfRating" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'profRating.label', default: 'ProfRating')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="Home"/></a></span>
        <!--   <span class="menuButton"><g:link class="list" action="list"><g:message code="Professor Rating List" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="Add a new rating" args="[entityName]" /></g:link></span>   -->
            <span class="menuButton"><g:link controller="course" class="list" action="list">List of Courses</g:link></span>
        <span class="menuButton"><g:link controller="professor" class="list" action="list">List of Professors</g:link></span>
        <span class="menuButton"><g:link controller="course" class="list" action="showCourseSearch">Find a Professor/Course</g:link></span>
        </div>
        <div class="body">
            <h1>Rating for ${profRatingInstance.professor.firstName} ${profRatingInstance.professor.lastName}</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                    
                        %{--<tr class="prop">--}%
                            %{--<td valign="top" class="name"><g:message code="profRating.id.label" default="Id" /></td>--}%
                            %{----}%
                            %{--<td valign="top" class="value">${fieldValue(bean: profRatingInstance, field: "id")}</td>--}%
                            %{----}%
                        %{--</tr>--}%
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="profRating.professor.label" default="Professor" /></td>
                            
                            <td valign="top" class="value"><g:link controller="professor" action="show" id="${profRatingInstance?.professor?.id}">${profRatingInstance?.professor?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="profRating.hot.label" default="Hot" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: profRatingInstance, field: "hot")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="profRating.clarity.label" default="Clarity" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: profRatingInstance, field: "clarity")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="profRating.accessible.label" default="Accessible" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: profRatingInstance, field: "accessible")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="profRating.textbook.label" default="Textbook" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: profRatingInstance, field: "textbook")}</td>
                            
                        </tr>

                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${profRatingInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
